[SUBROUTINE]
version = 1.14
icon = arc-to-ij.png
name = _("Arc I,J")
type = poly_arc_IJ
help = _("<b>Add an arc to a polyline</b>&#10;Define I and J offsets, angle and direction")
order = act h3 cs cr rev h1 type i j h2 a etype dir h4 ted te

[PARAM_H3]
name = _("Link")
type = sub-header
tool_tip = _("Link style with previous item")

[PARAM_CS]
name = _("Type")
header = h3
type = combo
options = _("None=0:Rounded=1:Beveled=2:Inverted Round=3")
icon = corner-style.png
tool_tip = _("Select link type")
value = 0

[PARAM_CR]
name = _("Radius")
header = h3
type = float
minimum_value = 0.0
icon = corner-radius.png
tool_tip = _("Radius for rounded or distance from apex")
value = 0.3
metric_value = 6

[PARAM_REV]
name = _("Complement")
icon = complement.png
type = bool
header = h3
tool_tip = _("Reverse direction of tool path for rounded or inverted round")
value = 0

[PARAM_H4]
name = _("Milling")
type = sub-header
hidden = 1

[PARAM_TED]
name = _("Tool engagement")
type = combo-user
options = _("Global=0:Specific=1")
icon = tool-eng.png
links = te=1
value = 0
header = h4
tool_tip = _("Tool engagement for this segment")

[PARAM_TE]
name = _("Tool engagement")
type = int
value = 100
header = h4
maximum_value = 100
minimum_value = 0
hidden = 1
suffix = %

[PARAM_ACT]
name = _("Active")
icon = enable.png
type = bool
value = 1

[PARAM_H1]
name = _("Arc center")
type = sub-header

[PARAM_TYPE]
name = _("Position")
header = h1
type = combo
options = _("Offsets=6:Absolute=7:X offset, Y absolute=61:X absolute, Y offset=62")
tool_tip = _("Arc center option")
value = 6
icon = line-rel.png

[PARAM_I]
type = float
name = _("I offset or cX")
icon = i.png
value = 1
metric_value = 20
header = h1
tool_tip = _("Offset or absolute value")

[PARAM_J]
type = float
name = _("J offset or cY")
icon = j.png
value = 0
metric_value = 0.0
header = h1
tool_tip = _("Offset or absolute value")

[PARAM_A]
name = _("Angle")
header = h2
type = float
icon = angle.png
digits = 2
tool_tip = _("Angle where it ends")
value = 60
suffix = &#176;

[PARAM_DIR]
name = _("Direction")
header = h2
type = combo
options = _("Clockwise=2:Counter-Clockwise=3")
icon = cw-ccw.png
tool_tip = _("Direction of path")
value = 3

[PARAM_H2]
name = _("Ending")
type = sub-header

[PARAM_ETYPE]
name = _("Angle option")
header = h2
type = combo
options = _("Relative to start=0:Absolute to arc center=1")
tool_tip = _("Angle relative to beginning of arc or absolute")
value = 0
icon = line-rel.png

[CALL]
content =
	(begin #sub_name)
	(arc with I,J offsets or absolute center author : Fernand Veilleux)
	
	o<#self_id_active> if [#param_act AND #<in_polyline>]
		o<select> CALL [31] [#param_ted] [#<poly_global_engagement>] [#param_te]
		
		o<poly_add_item> CALL [#param_type] [#param_i] [#param_j] [#param_dir] [#param_cs] [#param_cr] [#param_rev] [#31] [#param_a] [#param_etype]
		
	o<#self_id_active> endif
	(end #sub_name)
